package edu.upc.saleproducts;

import java.util.List;

/**
 *
 * @author Pavel
 */
public class Destination
{

    private static int TRANSPORTLOAD = 5;
    private static int COSTWAY = 2;
    private static double DEPRECIATIONWAY = 0.01;
    private String district;
    private int distance;
    private List<Product> products;

    public String getDistrict()
    {
        return district;
    }

    public void setDistrict(String district)
    {
        this.district = district;
    }

    public int getDistance()
    {
        return distance;
    }

    public void setDistance(int distance)
    {
        this.distance = distance;
    }

    public List<Product> getProducts()
    {
        return products;
    }

    public void setProducts(List<Product> products)
    {
        this.products = products;
    }

    public double getTransportCost()
    {
        return TRANSPORTLOAD + (COSTWAY * this.distance);
    }

    public double getDepreciation()
    {
        return (this.distance * DEPRECIATIONWAY) / 50;
    }
}
